<?php
namespace app\index\controller;

use app\common\lib\Redis;
use \app\common\lib\ali\Sms;
use think\Config;
use think\Controller;

class Index extends Base
{
	public function index()
	{

        $articles = \ArticleHelper::getArticle(1);
        $this->assign('articles',$articles);

        $project = \ArticleHelper::getArticle(2, 8);
        $this->assign('project',$project);

        $partner = $this->getPartner();
        $this->assign('partner',$partner);

        return $this->fetch();
	}

	public function contact(){
        $partner = $this->getPartner();
        $this->assign('partner',$partner);
        return $this->fetch();
    }

	private function getPartner(){

        return \CommonHelper::getPartner();
        return [
            'http://www.qy.com/static/index/picture/1519968939.jpg',
            'http://www.qy.com/static/index/picture/1519965495.jpg',
            'http://www.qy.com/static/index/picture/1519785054.jpg',
            'http://www.qy.com/static/index/picture/1520222042.jpg',
            'http://www.qy.com/static/index/picture/1520222042.jpg',
            'http://www.qy.com/static/index/picture/1519783742.jpg',
            'http://www.qy.com/static/index/picture/1519785225.jpg',
            'http://www.qy.com/static/index/picture/1520227224.jpg',
            'http://www.qy.com/static/index/picture/1519785356.jpg',
            'http://www.qy.com/static/index/picture/1519784979.jpg',
        ];
    }


}
